package com.scgl.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 产品信息对象 scgl_give
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
public class ScglGive extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long giveId;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String productCode;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 计划产量 */
    @Excel(name = "计划产量")
    private Long plannedQuantity;

    /** 交付日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交付日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryDate;

    public void setGiveId(Long giveId) 
    {
        this.giveId = giveId;
    }

    public Long getGiveId() 
    {
        return giveId;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setPlannedQuantity(Long plannedQuantity) 
    {
        this.plannedQuantity = plannedQuantity;
    }

    public Long getPlannedQuantity() 
    {
        return plannedQuantity;
    }
    public void setDeliveryDate(Date deliveryDate) 
    {
        this.deliveryDate = deliveryDate;
    }

    public Date getDeliveryDate() 
    {
        return deliveryDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("giveId", getGiveId())
            .append("productCode", getProductCode())
            .append("productName", getProductName())
            .append("specification", getSpecification())
            .append("unit", getUnit())
            .append("plannedQuantity", getPlannedQuantity())
            .append("deliveryDate", getDeliveryDate())
            .toString();
    }
}
